package com.haoyeteng.sxbd.modular.business.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 设备表
 * </p>
 *
 * @author haoyeteng123
 * @since 2019-05-26
 */
@TableName("bus_machine")
public class Machine extends Model<Machine> {

    private static final long serialVersionUID = 1L;

    /**
     * 设备Id
     */
    @TableId(value = "machine_id", type = IdType.AUTO)
    private Integer machineId;
    /**
     * 差分账号Id
     */
    @TableField("account_id")
    private Integer accountId;
    /**
     * 设备型号
     */
    @TableField("machine_model")
    private String machineModel;
    /**
     * 设备SN码
     */
    @TableField("machine_sn")
    private String machineSn;
    /**
     * 设备仪器检定证书(图片id)
     */
    @TableField("machine_cert")
    private String machineCert;
    /**
     * 设备申请状态(0;待处理;1通过;2驳回)
     */
    @TableField("apply_state")
    private Integer applyState;
    /**
     * 驳回理由
     */
    @TableField("reject_reson")
    private String rejectReson;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;
    /**
     * 删除标记
     */
    @TableLogic
    private Integer flag;


    public Integer getMachineId() {
        return machineId;
    }

    public void setMachineId(Integer machineId) {
        this.machineId = machineId;
    }

    public Integer getAccountId() {
        return accountId;
    }

    public void setAccountId(Integer accountId) {
        this.accountId = accountId;
    }

    public String getMachineModel() {
        return machineModel;
    }

    public void setMachineModel(String machineModel) {
        this.machineModel = machineModel;
    }

    public String getMachineSn() {
        return machineSn;
    }

    public void setMachineSn(String machineSn) {
        this.machineSn = machineSn;
    }

    public String getMachineCert() {
        return machineCert;
    }

    public void setMachineCert(String machineCert) {
        this.machineCert = machineCert;
    }

    public Integer getApplyState() {
        return applyState;
    }

    public void setApplyState(Integer applyState) {
        this.applyState = applyState;
    }

    public String getRejectReson() {
        return rejectReson;
    }

    public void setRejectReson(String rejectReson) {
        this.rejectReson = rejectReson;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    @Override
    protected Serializable pkVal() {
        return this.machineId;
    }

    @Override
    public String toString() {
        return "Machine{" +
        "machineId=" + machineId +
        ", accountId=" + accountId +
        ", machineModel=" + machineModel +
        ", machineSn=" + machineSn +
        ", machineCert=" + machineCert +
        ", applyState=" + applyState +
        ", rejectReson=" + rejectReson +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", flag=" + flag +
        "}";
    }
}
